#include "mybutton.h"

MyButton::MyButton(QWidget* parent):QPushButton(parent)
{
    delayTimer = new QTimer(this);
    connect(delayTimer, SIGNAL(timeout()), this, SLOT(updateDelayTimer()));
}

MyButton::~MyButton()
{

}

bool MyButton::curChecked(void){
    return isChecked();
}

void MyButton::updateDelayTimer(void)
{
    delayTimer->stop();
    retInfo(QString("delaytimer %0").arg(curChecked()));
//    this->isChecked()
}
